/// 即时咨询评论实体
class Comment {
  String id;
  String commentId;
  String content;
  String time;
  String avatar;
  String repliedName;
  String repliedId;

  // 回复
  String createDate;
  String repliedAvatar;
  String replyContent;
  String byRepliedId;
  String byRepliedName;
  String byRepliedAvatar;

  Comment({
    this.id,
    this.commentId,
    this.content,
    this.time,
    this.avatar,
    this.repliedName,
    this.repliedId,
    this.createDate,
    this.repliedAvatar,
    this.replyContent,
    this.byRepliedId,
    this.byRepliedName,
    this.byRepliedAvatar,
  });

  factory Comment.fromJson(Map<String, dynamic> data) {
    return Comment(
      id: data['id'],
      commentId: data['commentId'],
      content: data['content'],
      time: data['time'],
      avatar: data['avatar'],
      repliedName: data['repliedName'],
      repliedId: data['repliedId'],
      createDate: data['createDate'],
      repliedAvatar: data['repliedAvatar'],
      replyContent: data['replyContent'],
      byRepliedId: data['byRepliedId'],
      byRepliedName: data['byRepliedName'],
      byRepliedAvatar: data['byRepliedAvatar'],
    );
  }
}
